import keyboard from './Keyboard.js'
import Design from './design/index.js'

const design = new Design();

keyboard.config.prevent = true;

keyboard.on('spacebar', function () {
    design.clearSelectMark();
    design.MoveMark.MoveBoardStart();
}, function () {
    design.MoveMark.MoveBoardEnd();
});


keyboard.on('ctrl+=', function () {
    design.Board.zoom('=');
});
keyboard.on('ctrl+-', function () {
    design.Board.zoom('-');
});
keyboard.on('ctrl+0', function () {
    design.Board.zoom('0');
});





export { design };


// export function destroy() {
//     Keyboard.off('spacebar', _MoveBoardStart, _MoveBoardEnd);
// }